package com.jianbing.shasha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.shasha.mapper.ShashaLevelSettingMapper;
import com.jianbing.shasha.domain.ShashaLevelSetting;
import com.jianbing.shasha.service.IShashaLevelSettingService;

/**
 * 每天能玩的小关Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
@Service
public class ShashaLevelSettingServiceImpl implements IShashaLevelSettingService 
{
    @Autowired
    private ShashaLevelSettingMapper shashaLevelSettingMapper;

    /**
     * 查询每天能玩的小关
     * 
     * @param id 每天能玩的小关主键
     * @return 每天能玩的小关
     */
    @Override
    public ShashaLevelSetting selectShashaLevelSettingById(Long id)
    {
        return shashaLevelSettingMapper.selectShashaLevelSettingById(id);
    }

    /**
     * 查询每天能玩的小关列表
     * 
     * @param shashaLevelSetting 每天能玩的小关
     * @return 每天能玩的小关
     */
    @Override
    public List<ShashaLevelSetting> selectShashaLevelSettingList(ShashaLevelSetting shashaLevelSetting)
    {
        return shashaLevelSettingMapper.selectShashaLevelSettingList(shashaLevelSetting);
    }

    /**
     * 新增每天能玩的小关
     * 
     * @param shashaLevelSetting 每天能玩的小关
     * @return 结果
     */
    @Override
    public int insertShashaLevelSetting(ShashaLevelSetting shashaLevelSetting)
    {
        return shashaLevelSettingMapper.insertShashaLevelSetting(shashaLevelSetting);
    }

    /**
     * 修改每天能玩的小关
     * 
     * @param shashaLevelSetting 每天能玩的小关
     * @return 结果
     */
    @Override
    public int updateShashaLevelSetting(ShashaLevelSetting shashaLevelSetting)
    {
        return shashaLevelSettingMapper.updateShashaLevelSetting(shashaLevelSetting);
    }

    /**
     * 批量删除每天能玩的小关
     * 
     * @param ids 需要删除的每天能玩的小关主键
     * @return 结果
     */
    @Override
    public int deleteShashaLevelSettingByIds(Long[] ids)
    {
        return shashaLevelSettingMapper.deleteShashaLevelSettingByIds(ids);
    }

    /**
     * 删除每天能玩的小关信息
     * 
     * @param id 每天能玩的小关主键
     * @return 结果
     */
    @Override
    public int deleteShashaLevelSettingById(Long id)
    {
        return shashaLevelSettingMapper.deleteShashaLevelSettingById(id);
    }
}
